home *** CD-ROM | disk | FTP | other *** search
/ Graphics Plus / Graphics Plus.iso / msdos / viewers / hv12 / src / logcalc.c < prev    next >
C/C++ Source or Header  |  1992-07-08  |  182b  |  11 lines

  1. #include <math.h>
  2. #include <stdio.h>
  3. #include "mypow.h"
  4. main()
  5. {  
  6.   int i;
  7.   for(i=1;i<256;i++) 
  8.     printf("%d,",(int) (log((double)i/255.0)*(1L << PowInfBase)+0.5));
  9. }
  10.  
  11.